/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "EnterWorldScene.h"
#include "UISystem.h"

namespace PQClient
{

	EnterWorldScene::EnterWorldScene() : GameScene(Scene_EnterWorld),_uiLoaded(false)
	{
	}

	void EnterWorldScene::loadScene()
	{
		
		_sceneObject->getRenderProperty().setBackground(Ogre::ColourValue(0,0,1));

	}

	void EnterWorldScene::activate()
	{
		GameScene::activate();
		if(!_uiLoaded){
			UISystem::getSingleton().setCurrentScreen(UIScreen::UIScreen_Unkown);
			_uiLoaded=true;
		}

	}

	void EnterWorldScene::update(float deltaT)
	{
		//update the scene
		GameScene::update(deltaT);


		//update login related 
		//updateNetwork();
		//update login related 

		//updateStatus();
		
		//main game scene
		setActiveSceneId(Scene_GameWorld);

	}

}
